﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/CommonPages/MasterPageBackEnd.master" AutoEventWireup="true" CodeFile="updateCompetition.aspx.cs" Inherits="Pages_ManagerPages_updateCompetition" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="block">
        <h2>Info</h2>
        <table class="infoTable">
            <tr>
                <td>Name: </td>
                <td>
                    <asp:Label ID="lblCompName" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>First Prize: </td>
                <td>
                    <asp:Label ID="lblFirstPrize" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>Second Prize: </td>
                <td>
                    <asp:Label ID="lblSecPrize" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>Third Prize: </td>
                <td>
                    <asp:Label ID="lblThirdPrize" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>Start Date: </td>
                <td>
                    <asp:Label ID="lblStartDate" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>End Date: </td>
                <td>
                    <asp:Label ID="lblEndDate" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>Decription: </td>
                <td>
                    <asp:Label ID="lblDescription" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>Quotation: </td>
                <td>
                    <asp:Label ID="lblQuotation" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>Icon: </td>
                <td>
                    <asp:Image ID="imgIcon" runat="server" Width="100px" />
                    </td>
            </tr>
            <tr>
                <td>Staff List: </td>
                <td>
                <asp:GridView ID="grvStaff" runat="server" AutoGenerateColumns="False" 
            Width="181px" CssClass="mGrid" PagerStyle-CssClass="pgr">
                        <Columns>
                            <asp:BoundField DataField="staffId" HeaderText="Id" />
                            <asp:BoundField DataField="fullName" HeaderText="Full Name" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>                
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div class="Add">
                <h4>Add Competition</h4>
                <table class="addTable">
                    <tr>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text="Name: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompetitionName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label5" runat="server" Text="Start Date: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompetitionStartDate" CssClass="datetimePicker" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label6" runat="server" Text="End Date: "></asp:Label>

                        </td>
                        <td>
                            <asp:TextBox ID="txtCompetitionEndDate" CssClass="datetimePicker" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label7" runat="server" Text="Description: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompetitionDescription" runat="server" TextMode="MultiLine"
                                ClientIDMode="Static"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label13" runat="server" Text="Image: "></asp:Label>
                        </td>
                        <td>
                            <asp:FileUpload ID="fileCompImage" runat="server" />
                        </td>
                    </tr>
                </table>
                <table class="addTable">
                    <tr>
                        <td>
                            <asp:Label ID="Label8" runat="server" Text="First Prize: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtFirstPrize" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label11" runat="server" Text="Second Prize: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSecondPrize" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label12" runat="server" Text="Third Prize: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtThirdPrize" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label10" runat="server" Text="Quotation :"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompetitionQuotation" runat="server" TextMode="MultiLine"
                                ClientIDMode="Static"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="grvStaffList" runat="server" AutoGenerateColumns="False"
                    CssClass="mGrid" PagerStyle-CssClass="pgr" AllowPaging="True" PageSize="5"
                    Width="673px">
                    <Columns>
                        <asp:BoundField DataField="staffId" HeaderText="Staff Id" />
                        <asp:BoundField DataField="fullName" HeaderText="Full Name" />
                        <asp:BoundField DataField="major" HeaderText="Major" />
                        <asp:TemplateField AccessibleHeaderText="Chose">
                            <ItemTemplate>
                                <asp:CheckBox ID="ckChose" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                    <asp:Button ID="btnAddComp" runat="server" Text="Update Competition" 
                    onclick="btnAddComp_Click"/>
            </div>
</asp:Content>

